// 导入axios模块
import axios from '@/utils/axios'

// 获取用户个人信息
export const getUserInfo = () => {
  return axios({
    method: 'GET',
    url: '/app/v1_0/user'
  })
}

// 获取用户文章列表
export const getUserArticles = params => {
  return axios({
    method: 'GET',
    url: '/app/v1_0/user/articles',
    params
  })
}
